from django.conf.urls import url
from myapp import views
urlpatterns = [
    url('^publisher/$', views.PublisherView.as_view()),
    url('^publisher/(\d+)/$',views.PublisherDetailView.as_view()),
    url('^books/$', views.BookView.as_view()),
    url('^books/(?P<pk>\d+)/$', views.BookDetailView.as_view()),
    url('^publishers/$', views.PublisherGenericView.as_view()),
    url('^publishers/(?P<pk>\d+)/$',views.PublisherDetailGenericView.as_view()),
]
